Skip to content

Commit

Permalink
Removed guicontrol_enabled(), guicontrol_visible()
Browse files Browse the repository at this point in the history
  • Loading branch information
frang75 committed Apr 5, 2024
1 parent 7485964 commit 8b1fecc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
6 changes: 5 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

* WindowsXP TableView/ListBox select colors. [Commit](https://github.com/frang75/nappgui_src/commit/fd0983ff06cbea190a543e9f119e749c436b954d).

* macOS TableView/ListBox select colors. [Isssue](https://github.com/frang75/nappgui_src/issues/115).
* macOS TableView/ListBox select colors. [Issue](https://github.com/frang75/nappgui_src/issues/115). [Commit](https://github.com/frang75/nappgui_src/commit/7485964f68e5647c5a31e267ce3a8d2b059ca031).

### Removed

* `guicontrol_enabled()` and `guicontrol_visible()` because unsafe. Use `cell_enabled()`, `cell_visible()`.

### Improved

Expand Down
2 changes: 1 addition & 1 deletion prj/build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5012
5016
14 changes: 0 additions & 14 deletions src/gui/guicontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,6 @@ Panel *guicontrol_panel(GuiControl *control)

/*---------------------------------------------------------------------------*/

void guicontrol_enabled(GuiControl *control, const bool_t enabled)
{
_component_enabled((GuiComponent *)control, enabled);
}

/*---------------------------------------------------------------------------*/

void guicontrol_visible(GuiControl *control, const bool_t visible)
{
_component_visible((GuiComponent *)control, visible);
}

/*---------------------------------------------------------------------------*/

void guicontrol_tag(GuiControl *control, const uint32_t tag)
{
GuiComponent *component = (GuiComponent *)control;
Expand Down
4 changes: 0 additions & 4 deletions src/gui/guicontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ _gui_api SplitView *guicontrol_splitview(GuiControl *control);

_gui_api Panel *guicontrol_panel(GuiControl *control);

_gui_api void guicontrol_enabled(GuiControl *control, const bool_t enabled);

_gui_api void guicontrol_visible(GuiControl *control, const bool_t visible);

_gui_api void guicontrol_tag(GuiControl *control, const uint32_t tag);

_gui_api uint32_t guicontrol_get_tag(const GuiControl *control);
Expand Down

0 comments on commit 8b1fecc

Please sign in to comment.