Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Removed unnecessary call to gtk_widget_set_sensitive().
Browse files Browse the repository at this point in the history
  • Loading branch information
pelatx committed Mar 3, 2018
1 parent 24218de commit d6834b4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions appshell/appshell_extensions_gtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,6 @@ int32 SetMenuItemState(CefRefPtr<CefBrowser> browser, ExtensionString command, b
return ERR_NOT_FOUND;
}
GtkWidget* menuItem = (GtkWidget*) model.getOsItem(tag);
gtk_widget_set_sensitive(menuItem, enabled);

// Functionality for checked
GtkWidget* parent = gtk_widget_get_parent(menuItem);
int position = _getMenuItemPosition(parent, menuItem);
const gchar* label = gtk_menu_item_get_label(GTK_MENU_ITEM(menuItem));
Expand All @@ -1136,7 +1133,6 @@ int32 SetMenuItemState(CefRefPtr<CefBrowser> browser, ExtensionString command, b
} else if (checked == false){
newMenuItem = gtk_menu_item_new_with_label(label);
}

gtk_widget_destroy(menuItem);

InstallMenuHandler(newMenuItem, browser, tag);
Expand Down

0 comments on commit d6834b4

Please sign in to comment.