aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-09-16 12:42:17 -0500
committerTed Gould <ted@gould.cx>2011-09-16 12:42:17 -0500
commitf5be40f06a3a6591ef442261479b960c58dbe8c1 (patch)
tree5c1117c8a303efad44b4516fbebb161d9968f35e /src
parent94ce65a555a0fad7888ec94d1cb9f27c12395ebe (diff)
downloadayatana-ido-f5be40f06a3a6591ef442261479b960c58dbe8c1.tar.gz
ayatana-ido-f5be40f06a3a6591ef442261479b960c58dbe8c1.tar.bz2
ayatana-ido-f5be40f06a3a6591ef442261479b960c58dbe8c1.zip
Removing a bunch of debug messages
Diffstat (limited to 'src')
-rw-r--r--src/idocalendarmenuitem.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c
index aa5314c..085a2da 100644
--- a/src/idocalendarmenuitem.c
+++ b/src/idocalendarmenuitem.c
@@ -197,17 +197,14 @@ ido_calendar_menu_item_button_press (GtkWidget *widget,
GdkEventButton *event)
{
GtkWidget *calendar = IDO_CALENDAR_MENU_ITEM (widget)->priv->calendar;
- g_debug("Button Press");
if (event->button == 1) {
if (gtk_widget_get_window (calendar) != NULL) {
gdk_window_raise (gtk_widget_get_window (calendar));
- g_debug("Raise window");
}
if (!gtk_widget_has_focus (calendar)) {
gtk_widget_grab_focus (calendar);
- g_debug("Grab focus: %d", gtk_widget_has_focus(calendar));
}
GdkEvent * newevent = gdk_event_copy((GdkEvent *)(event));
@@ -217,8 +214,6 @@ ido_calendar_menu_item_button_press (GtkWidget *widget,
gint root_x = event->x_root;
gint root_y = event->y_root;
- g_debug("Root X: %d Y: %d", root_x, root_y);
-
for (child = children; child != NULL; child = g_list_next(child)) {
gint newx, newy;
gint winx, winy;
@@ -227,20 +222,14 @@ ido_calendar_menu_item_button_press (GtkWidget *widget,
((GdkEventButton *)newevent)->window = newwindow;
gdk_window_get_origin(newwindow, &winx, &winy);
- g_debug("Window position: %dx%d", winx, winy);
newx = root_x - winx;
newy = root_y - winy;
if (newx >= 0 && newy >= 0 && newx < gdk_window_get_width(newwindow) && newy < gdk_window_get_height(newwindow)) {
- gboolean returned = FALSE;
- g_debug("Simulating event at: %dx%d", newx, newy);
((GdkEventButton *)newevent)->x = newx;
((GdkEventButton *)newevent)->y = newy;
- returned = GTK_WIDGET_GET_CLASS(calendar)->button_press_event(GTK_WIDGET(calendar), (GdkEventButton*)newevent);
- if (returned) {
- g_debug("\tHandled");
- }
+ GTK_WIDGET_GET_CLASS(calendar)->button_press_event(GTK_WIDGET(calendar), (GdkEventButton*)newevent);
}
}
return TRUE;
@@ -253,18 +242,8 @@ static gboolean
ido_calendar_menu_item_button_release (GtkWidget *widget,
GdkEventButton *event)
{
- g_debug("Button Release");
- // GtkWidget *calendar = IDO_CALENDAR_MENU_ITEM (widget)->priv->calendar;
GtkWidget *calendar = IDO_CALENDAR_MENU_ITEM (widget)->priv->calendar;
-
-GdkEvent * newevent = gdk_event_copy((GdkEvent *)(event));
-GList * children = gdk_window_get_children(gtk_widget_get_window(calendar));
-GList * child;
-for (child = children; child != NULL; child = g_list_next(child)) {
-((GdkEventButton *)newevent)->window = (GdkWindow*)child->data;
-
- GTK_WIDGET_GET_CLASS(calendar)->button_release_event(GTK_WIDGET(calendar), (GdkEventButton*)newevent);
- }
+ GTK_WIDGET_GET_CLASS(calendar)->button_release_event(GTK_WIDGET(calendar), event);
return TRUE;
}