mirror of https://github.com/GNOME/gimp.git
removed an unneeded call to gtk_widget_realize() (bug #324254). Sprinkled
2006-04-19 Sven Neumann <sven@gimp.org> * app/dialogs/user-install-dialog.c: removed an unneeded call to gtk_widget_realize() (bug #324254). Sprinkled const qualifiers to avoid relocations.
This commit is contained in:
parent
9ddb35689c
commit
ed708c5a0e
|
@ -1,3 +1,9 @@
|
||||||
|
2006-04-19 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/dialogs/user-install-dialog.c: removed an unneeded call to
|
||||||
|
gtk_widget_realize() (bug #324254). Sprinkled const qualifiers to
|
||||||
|
avoid relocations.
|
||||||
|
|
||||||
2006-04-19 Sven Neumann <sven@gimp.org>
|
2006-04-19 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/common/animationplay.c: fixed bug in range calculation
|
* plug-ins/common/animationplay.c: fixed bug in range calculation
|
||||||
|
|
|
@ -119,11 +119,11 @@ typedef enum
|
||||||
TREE_ITEM_FROM_SYSCONF_DIR /* Copy from sysconf directory */
|
TREE_ITEM_FROM_SYSCONF_DIR /* Copy from sysconf directory */
|
||||||
} TreeItemType;
|
} TreeItemType;
|
||||||
|
|
||||||
static struct
|
static const struct
|
||||||
{
|
{
|
||||||
gboolean directory;
|
gboolean directory;
|
||||||
gchar *name;
|
const gchar *name;
|
||||||
gchar *description;
|
const gchar *description;
|
||||||
TreeItemType type;
|
TreeItemType type;
|
||||||
}
|
}
|
||||||
tree_items[] =
|
tree_items[] =
|
||||||
|
@ -322,9 +322,9 @@ static void
|
||||||
user_install_notebook_set_page (GtkNotebook *notebook,
|
user_install_notebook_set_page (GtkNotebook *notebook,
|
||||||
gint index)
|
gint index)
|
||||||
{
|
{
|
||||||
GtkWidget *page;
|
GtkWidget *page;
|
||||||
gchar *title;
|
const gchar *title;
|
||||||
gchar *footer;
|
const gchar *footer;
|
||||||
|
|
||||||
page = gtk_notebook_get_nth_page (notebook, index);
|
page = gtk_notebook_get_nth_page (notebook, index);
|
||||||
|
|
||||||
|
@ -510,15 +510,15 @@ user_install_corner_expose (GtkWidget *widget,
|
||||||
|
|
||||||
static GtkWidget *
|
static GtkWidget *
|
||||||
user_install_notebook_append_page (GtkNotebook *notebook,
|
user_install_notebook_append_page (GtkNotebook *notebook,
|
||||||
gchar *title,
|
const gchar *title,
|
||||||
gchar *footer,
|
const gchar *footer,
|
||||||
gint vbox_spacing)
|
gint vbox_spacing)
|
||||||
{
|
{
|
||||||
GtkWidget *page;
|
GtkWidget *page;
|
||||||
|
|
||||||
page = gtk_vbox_new (FALSE, vbox_spacing);
|
page = gtk_vbox_new (FALSE, vbox_spacing);
|
||||||
g_object_set_data (G_OBJECT (page), "title", title);
|
g_object_set_data (G_OBJECT (page), "title", (gpointer) title);
|
||||||
g_object_set_data (G_OBJECT (page), "footer", footer);
|
g_object_set_data (G_OBJECT (page), "footer", (gpointer) footer);
|
||||||
gtk_notebook_append_page (notebook, page, NULL);
|
gtk_notebook_append_page (notebook, page, NULL);
|
||||||
gtk_widget_show (page);
|
gtk_widget_show (page);
|
||||||
|
|
||||||
|
@ -526,8 +526,8 @@ user_install_notebook_append_page (GtkNotebook *notebook,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_label (GtkBox *box,
|
add_label (GtkBox *box,
|
||||||
gchar *text)
|
const gchar *text)
|
||||||
{
|
{
|
||||||
GtkWidget *label;
|
GtkWidget *label;
|
||||||
|
|
||||||
|
@ -661,8 +661,6 @@ user_install_dialog_run (const gchar *alternate_system_gimprc,
|
||||||
gdk_color_parse ("white", &white_color);
|
gdk_color_parse ("white", &white_color);
|
||||||
gdk_color_parse ("dark orange", &title_color);
|
gdk_color_parse ("dark orange", &title_color);
|
||||||
|
|
||||||
gtk_widget_realize (dialog);
|
|
||||||
|
|
||||||
/* B/W Style for the page contents */
|
/* B/W Style for the page contents */
|
||||||
page_style = gtk_widget_get_modifier_style (dialog);
|
page_style = gtk_widget_get_modifier_style (dialog);
|
||||||
g_object_ref (page_style);
|
g_object_ref (page_style);
|
||||||
|
|
Loading…
Reference in New Issue