MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_window_save_size_cb

Function hb_window_save_size_cb

gtk/src/callbacks.c:5724–5746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5722}
5723
5724G_MODULE_EXPORT void
5725hb_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
5748void
5749ghb_list_box_remove_all (GtkListBox *lb)

Callers

nothing calls this directly

Calls 5

ghb_udFunction · 0.85
ghb_dict_get_intFunction · 0.85
ghb_dict_set_intFunction · 0.85
ghb_pref_setFunction · 0.85
ghb_prefs_storeFunction · 0.85

Tested by

no test coverage detected