"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gladeui/glade-project-properties.c" between
glade-3.38.0.tar.xz and glade-3.38.1.tar.xz

About: Glade is a User Interface Designer for the GTK+ toolkit and the Gnome desktop environment.

glade-project-properties.c  (glade-3.38.0.tar.xz):glade-project-properties.c  (glade-3.38.1.tar.xz)
skipping to change at line 132 skipping to change at line 132
GtkWidget *resource_fullpath_radio; GtkWidget *resource_fullpath_radio;
GtkWidget *relative_path_entry; GtkWidget *relative_path_entry;
GtkWidget *full_path_button; GtkWidget *full_path_button;
GtkWidget *domain_entry; GtkWidget *domain_entry;
GtkWidget *template_combobox; GtkWidget *template_combobox;
GtkWidget *template_checkbutton; GtkWidget *template_checkbutton;
GtkWidget *css_filechooser; GtkWidget *css_filechooser;
GtkWidget *css_checkbutton; GtkWidget *css_checkbutton;
GHashTable *target_radios; GHashTable *target_combos;
/* License */ /* License */
GtkComboBox *license_comboboxtext; GtkComboBox *license_comboboxtext;
GtkTextView *license_textview; GtkTextView *license_textview;
GtkEntryBuffer *name_entrybuffer; GtkEntryBuffer *name_entrybuffer;
GtkEntryBuffer *description_entrybuffer; GtkEntryBuffer *description_entrybuffer;
GtkTextBuffer *authors_textbuffer; GtkTextBuffer *authors_textbuffer;
GtkTextBuffer *copyright_textbuffer; GtkTextBuffer *copyright_textbuffer;
GtkTextBuffer *license_textbuffer; GtkTextBuffer *license_textbuffer;
GtkTextBuffer *warnings_textbuffer; GtkTextBuffer *warnings_textbuffer;
skipping to change at line 171 skipping to change at line 171
#define GLADE_PROJECT_PROPERTIES_PRIVATE(o) ((GladeProjectPropertiesPrivate *) g lade_project_properties_get_instance_private((GladeProjectProperties*)o)) #define GLADE_PROJECT_PROPERTIES_PRIVATE(o) ((GladeProjectPropertiesPrivate *) g lade_project_properties_get_instance_private((GladeProjectProperties*)o))
/******************************************************** /********************************************************
* Class/Instance Init * * Class/Instance Init *
********************************************************/ ********************************************************/
static void static void
glade_project_properties_init (GladeProjectProperties *properties) glade_project_properties_init (GladeProjectProperties *properties)
{ {
GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies); GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies);
priv->target_radios = g_hash_table_new_full (g_str_hash, g_str_equal, priv->target_combos = g_hash_table_new_full (g_str_hash, g_str_equal,
g_free, NULL); g_free, NULL);
gtk_widget_init_template (GTK_WIDGET (properties)); gtk_widget_init_template (GTK_WIDGET (properties));
} }
static void static void
glade_project_properties_class_init (GladeProjectPropertiesClass *klass) glade_project_properties_class_init (GladeProjectPropertiesClass *klass)
{ {
GObjectClass *gobject_class; GObjectClass *gobject_class;
GtkWidgetClass *widget_class; GtkWidgetClass *widget_class;
skipping to change at line 263 skipping to change at line 263
G_OBJECT_CLASS (glade_project_properties_parent_class)->dispose (object); G_OBJECT_CLASS (glade_project_properties_parent_class)->dispose (object);
} }
static void static void
glade_project_properties_finalize (GObject *object) glade_project_properties_finalize (GObject *object)
{ {
GladeProjectProperties *properties = GLADE_PROJECT_PROPERTIES (object); GladeProjectProperties *properties = GLADE_PROJECT_PROPERTIES (object);
GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies); GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies);
g_hash_table_destroy (priv->target_radios); g_hash_table_destroy (priv->target_combos);
G_OBJECT_CLASS (glade_project_properties_parent_class)->finalize (object); G_OBJECT_CLASS (glade_project_properties_parent_class)->finalize (object);
} }
static void static void
combobox_populate_from_catalog (GladeProjectProperties *properties, combobox_populate_from_catalog (GladeProjectProperties *properties,
GtkWidget *combobox, GtkWidget *combobox,
GladeCatalog *catalog) GladeCatalog *catalog)
{ {
GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies); GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies);
skipping to change at line 290 skipping to change at line 290
&major, &minor); &major, &minor);
for (targets = glade_catalog_get_targets (catalog), position = 0; for (targets = glade_catalog_get_targets (catalog), position = 0;
targets; targets = targets->next, position++) targets; targets = targets->next, position++)
{ {
GladeTargetableVersion *version = targets->data; GladeTargetableVersion *version = targets->data;
g_autofree gchar *name = g_strdup_printf ("%d.%d", g_autofree gchar *name = g_strdup_printf ("%d.%d",
version->major, version->major,
version->minor); version->minor);
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT(combobox), position, na me); gtk_combo_box_text_insert (GTK_COMBO_BOX_TEXT(combobox), position, name, n ame);
if (major == version->major && minor == version->minor) if (major == version->major && minor == version->minor)
gtk_combo_box_set_active (GTK_COMBO_BOX(combobox), position); gtk_combo_box_set_active (GTK_COMBO_BOX(combobox), position);
g_signal_connect (G_OBJECT (combobox), "changed", g_signal_connect (G_OBJECT (combobox), "changed",
G_CALLBACK (target_combobox_changed), properties); G_CALLBACK (target_combobox_changed), properties);
g_object_set_data (G_OBJECT (combobox), "catalog", g_object_set_data (G_OBJECT (combobox), "catalog",
(gchar *) glade_catalog_get_name (catalog)); (gchar *) glade_catalog_get_name (catalog));
} }
g_hash_table_insert (priv->target_radios, g_hash_table_insert (priv->target_combos,
g_strdup (glade_catalog_get_name (catalog)), g_strdup (glade_catalog_get_name (catalog)),
combobox); combobox);
} }
static void static void
target_version_box_fill (GladeProjectProperties *properties) target_version_box_fill (GladeProjectProperties *properties)
{ {
GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies); GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies);
GtkWidget *grid = priv->toolkit_grid; GtkWidget *grid = priv->toolkit_grid;
GtkWidget *label, *combobox; GtkWidget *label, *combobox;
skipping to change at line 1107 skipping to change at line 1107
GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies); GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(propert ies);
GList *list; GList *list;
priv->ignore_ui_cb = TRUE; priv->ignore_ui_cb = TRUE;
/* For each catalog */ /* For each catalog */
for (list = glade_app_get_catalogs (); list; list = g_list_next (list)) for (list = glade_app_get_catalogs (); list; list = g_list_next (list))
{ {
GladeCatalog *catalog = list->data; GladeCatalog *catalog = list->data;
GtkComboBox *combobox; GtkComboBox *combobox;
gint minor, major; gint minor, major;
const gchar *name;
/* Skip if theres only one option */ /* Skip if theres only one option */
if (g_list_length (glade_catalog_get_targets (catalog)) <= 1) if (g_list_length (glade_catalog_get_targets (catalog)) <= 1)
continue; continue;
/* Fetch the version for this project */ /* Fetch the version for this project */
glade_project_get_target_version (priv->project, name = glade_catalog_get_name (catalog);
glade_catalog_get_name (catalog), glade_project_get_target_version (priv->project, name, &major, &minor);
&major, &minor);
/* Fetch the radios for this catalog */ /* Fetch the radios for this catalog */
if (priv->target_radios && if (priv->target_combos &&
(combobox = g_hash_table_lookup (priv->target_radios, glade_catalog_ge (combobox = g_hash_table_lookup (priv->target_combos, name)) != NULL)
t_name (catalog))) != NULL)
{ {
g_autofree gchar *id = NULL; g_autofree gchar *id = NULL;
id = g_strdup_printf ("%d.%d", major, minor); id = g_strdup_printf ("%d.%d", major, minor);
gtk_combo_box_set_active_id(GTK_COMBO_BOX(combobox), id); gtk_combo_box_set_active_id(GTK_COMBO_BOX(combobox), id);
} }
} }
glade_project_verify (priv->project, FALSE, glade_project_verify (priv->project, FALSE,
GLADE_VERIFY_VERSIONS | GLADE_VERIFY_VERSIONS |
GLADE_VERIFY_DEPRECATIONS | GLADE_VERIFY_DEPRECATIONS |
 End of changes. 8 change blocks. 
11 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)