Commit 83a94230 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

app/widgets/gimpcellrendereraccel.c app/widgets/gimphistogrambox.c Get rid

2004-08-18  Manish Singh  <yosh@gimp.org>

        * app/widgets/gimpcellrendereraccel.c
        * app/widgets/gimphistogrambox.c
        * plug-ins/gfig/gfig-dialog.c: Get rid of some unnecessary casts.
parent 0620ee06
2004-08-18 Manish Singh <yosh@gimp.org>
* app/widgets/gimpcellrendereraccel.c
* app/widgets/gimphistogrambox.c
* plug-ins/gfig/gfig-dialog.c: Get rid of some unnecessary casts.
2004-08-18 Sven Neumann <sven@gimp.org>
* app/gui/color-notebook.c: no need to set a size_request here.
......
......@@ -346,7 +346,7 @@ ungrab_stuff (GtkWidget *widget,
gdk_display_keyboard_ungrab (display, GDK_CURRENT_TIME);
gdk_display_pointer_ungrab (display, GDK_CURRENT_TIME);
g_signal_handlers_disconnect_by_func (G_OBJECT (accel->grab_widget),
g_signal_handlers_disconnect_by_func (accel->grab_widget,
G_CALLBACK (grab_key_callback),
accel);
}
......@@ -436,7 +436,7 @@ gimp_cell_renderer_accel_start_editing (GtkCellRenderer *cell,
accel->grab_widget = widget;
g_signal_connect (G_OBJECT (widget), "key_press_event",
g_signal_connect (widget, "key_press_event",
G_CALLBACK (grab_key_callback),
accel);
......@@ -469,7 +469,7 @@ gimp_cell_renderer_accel_start_editing (GtkCellRenderer *cell,
gtk_widget_show_all (accel->edit_widget);
g_signal_connect (G_OBJECT (accel->edit_widget), "unrealize",
g_signal_connect (accel->edit_widget, "unrealize",
G_CALLBACK (ungrab_stuff),
accel);
......
......@@ -289,7 +289,7 @@ gimp_histogram_box_border_notify (GimpHistogramView *view,
GtkWidget *
gimp_histogram_box_new (void)
{
return GTK_WIDGET (g_object_new (GIMP_TYPE_HISTOGRAM_BOX, NULL));
return g_object_new (GIMP_TYPE_HISTOGRAM_BOX, NULL);
}
void
......
......@@ -340,21 +340,21 @@ gfig_dialog (void)
menuitem = gtk_menu_item_new_with_mnemonic ("_Open");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_signal_connect (G_OBJECT (menuitem), "activate",
g_signal_connect (menuitem, "activate",
G_CALLBACK (load_button_callback),
NULL);
gtk_widget_show (menuitem);
menuitem = gtk_menu_item_new_with_mnemonic ("_Import");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_signal_connect (G_OBJECT (menuitem), "activate",
g_signal_connect (menuitem, "activate",
G_CALLBACK (merge_button_callback),
NULL);
gtk_widget_show (menuitem);
menuitem = gtk_menu_item_new_with_mnemonic ("_Save");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_signal_connect (G_OBJECT (menuitem), "activate",
g_signal_connect (menuitem, "activate",
G_CALLBACK (gfig_save_menu_callback),
NULL);
gtk_widget_show (menuitem);
......@@ -370,14 +370,14 @@ gfig_dialog (void)
menuitem = gtk_menu_item_new_with_mnemonic ("_Grid");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_signal_connect (G_OBJECT (menuitem), "activate",
g_signal_connect (menuitem, "activate",
G_CALLBACK (adjust_grid_callback),
NULL);
gtk_widget_show (menuitem);
menuitem = gtk_menu_item_new_with_mnemonic ("_Options");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_signal_connect (G_OBJECT (menuitem), "activate",
g_signal_connect (menuitem, "activate",
G_CALLBACK (options_dialog_callback),
NULL);
gtk_widget_show (menuitem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment