| 5722 | } |
| 5723 | |
| 5724 | G_MODULE_EXPORT void |
| 5725 | hb_window_save_size_cb (GtkWidget *widget, GParamSpec *spec, gpointer data) |
| 5726 | |
| 5727 | { |
| 5728 | signal_user_data_t *ud = ghb_ud(); |
| 5729 | |
| 5730 | if (gtk_widget_get_visible(widget)) |
| 5731 | { |
| 5732 | gint w, h, ww, wh; |
| 5733 | w = ghb_dict_get_int(ud->prefs, "window_width"); |
| 5734 | h = ghb_dict_get_int(ud->prefs, "window_height"); |
| 5735 | gtk_window_get_default_size(GTK_WINDOW(widget), &ww, &wh); |
| 5736 | |
| 5737 | if ( w != ww || h != wh ) |
| 5738 | { |
| 5739 | ghb_dict_set_int(ud->prefs, "window_width", ww); |
| 5740 | ghb_dict_set_int(ud->prefs, "window_height", wh); |
| 5741 | ghb_pref_set(ud->prefs, "window_width"); |
| 5742 | ghb_pref_set(ud->prefs, "window_height"); |
| 5743 | ghb_prefs_store(); |
| 5744 | } |
| 5745 | } |
| 5746 | } |
| 5747 | |
| 5748 | void |
| 5749 | ghb_list_box_remove_all (GtkListBox *lb) |
nothing calls this directly
no test coverage detected