summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-28 16:50:52 +0000
committerracarr <racarr>2007-01-28 16:50:52 +0000
commit1036ab7daf2abda4b75d4fb3c2b541889e8d5fd1 (patch)
treeb0000ab666280d322d56bb37aa3c657c04918eb0
parent25719f592d85bfcf400b55b83e8dc588e8e86bd4 (diff)
downloadberyl-desktop-manager-1036ab7daf2abda4b75d4fb3c2b541889e8d5fd1.tar.gz
beryl-desktop-manager-1036ab7daf2abda4b75d4fb3c2b541889e8d5fd1.tar.bz2
Remove button press event crap
-rw-r--r--src/bdm.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 9628908..7957a68 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -68,35 +68,6 @@ static void on_alpha_screen_changed(GtkWidget * widget, GdkScreen * pOldScreen,
gtk_widget_set_colormap(widget,pColormap);
}
-gboolean on_button_press(GtkWidget *widget, GdkEventButton *button, GdkWindowEdge edge, ScreenArea * area)
-{
- if (button->type = GDK_BUTTON_PRESS)
- {
- if (button->button ==1)
- {
- if ( (area->alpha + .05f) <= 1.0f)
- {
- area->alpha += .05f;
- }
- }
- else if (button->button == 2)
- {
- if (area->alpha > .05f)
- {
- area->alpha -= .05;
- }
- }
- if (area->window)
- render(area);
-
- }
- return TRUE;
-}
-
-gboolean on_key_press(GtkWidget * pWidget, GdkEventKey *pKey, ScreenArea * userData)
-{
- // We could do stuff here
-}
int main(int argc, char * argv[])
{
@@ -233,9 +204,7 @@ int main(int argc, char * argv[])
gtk_widget_set_app_paintable(dwindow, TRUE);
gtk_window_set_keep_below(GTK_WINDOW(dwindow),TRUE);
g_signal_connect( G_OBJECT(dwindow),"expose-event",G_CALLBACK(on_alpha_window_expose),sa);
- g_signal_connect(G_OBJECT(dwindow),"button-press-event",G_CALLBACK(on_button_press),sa);
gtk_widget_show(dwindow);
- gtk_widget_add_events(G_OBJECT(dwindow), GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
on_alpha_window_expose(dwindow,0,sa);
}
}