Fixed spin button buttons

pull/68/head
Ivan Yartsev 1 month ago
parent 849beaa0bc
commit 99d275edc5

@ -1163,7 +1163,7 @@ void on_edit_open(GtkWidget *, main_window *widgets){
} }
} }
void on_dispatcher_update(GtkWidget *,main_window *widgets){ gboolean on_dispatcher_update(GtkWidget *,main_window *widgets){
int interval = gtk_spin_button_get_value(GTK_SPIN_BUTTON(widgets->DispatcherUpdateSpin)); int interval = gtk_spin_button_get_value(GTK_SPIN_BUTTON(widgets->DispatcherUpdateSpin));
if (interval>0) { if (interval>0) {
char* str_second = yon_char_from_int(interval); char* str_second = yon_char_from_int(interval);
@ -1177,6 +1177,7 @@ void on_dispatcher_update(GtkWidget *,main_window *widgets){
g_object_set_property(G_OBJECT(widgets->DispatcherUpdateSpin),"has-focus",val); g_object_set_property(G_OBJECT(widgets->DispatcherUpdateSpin),"has-focus",val);
g_free(val); g_free(val);
} }
return 0;
} }
void on_processes_update(GtkWidget *,main_window *widgets){ void on_processes_update(GtkWidget *,main_window *widgets){

@ -189,7 +189,7 @@ void config_init();
void on_info_target_type_switched(GtkWidget *self, main_window *widgets); void on_info_target_type_switched(GtkWidget *self, main_window *widgets);
void on_tab_changed(GtkWidget *self, GtkWidget *page, int page_num, main_window *widgets); void on_tab_changed(GtkWidget *self, GtkWidget *page, int page_num, main_window *widgets);
void on_processes_update(GtkWidget *self,main_window *widgets); void on_processes_update(GtkWidget *self,main_window *widgets);
void on_dispatcher_update(GtkWidget *self,main_window *widgets); gboolean on_dispatcher_update(GtkWidget *self,main_window *widgets);
void on_edit_open(GtkWidget *self, main_window *widgets); void on_edit_open(GtkWidget *self, main_window *widgets);
void on_quotas_edit(GtkWidget *self, dictionary *windows); void on_quotas_edit(GtkWidget *self, dictionary *windows);
void on_remove(GtkWidget *self, main_window *widgets); void on_remove(GtkWidget *self, main_window *widgets);

Loading…
Cancel
Save