Use g_signal_emit instead of g_signal_emit_by_name when possible

This commit is contained in:
Alexander Larsson
2009-06-24 20:33:13 +02:00
parent 8518aa2bf3
commit b093db8da9

View File

@ -7871,11 +7871,11 @@ from_parent (GdkWindowObject *window,
double parent_x, double parent_y, double parent_x, double parent_y,
double *offscreen_x, double *offscreen_y) double *offscreen_x, double *offscreen_y)
{ {
g_signal_emit_by_name (window, g_signal_emit (window,
"from_parent", FROM_PARENT,
parent_x, parent_y, parent_x, parent_y,
offscreen_x, offscreen_y, offscreen_x, offscreen_y,
NULL); NULL);
} }
static void static void
@ -7976,9 +7976,9 @@ pick_offscreen_child (GdkWindowObject *window,
GdkWindowObject *res; GdkWindowObject *res;
res = NULL; res = NULL;
g_signal_emit_by_name (window, g_signal_emit (window,
"pick-offscreen-child", PICK_OFFSCREEN_CHILD,
x, y, &res); x, y, &res);
return res; return res;
} }
@ -8599,9 +8599,9 @@ gdk_window_get_offscreen_parent (GdkWindow *window)
GdkWindow *res; GdkWindow *res;
res = NULL; res = NULL;
g_signal_emit_by_name (private->impl_window, g_signal_emit (private->impl_window,
"get-offscreen-parent", GET_OFFSCREEN_PARENT,
&res); &res);
return res; return res;
} }