Commit 5c88be25 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

new panel-widget signal "applet_move" and got rid of restore_state signal.

Thu Mar 05 22:22:53 1998  George Lebl  <jirka@5z.com>

        * main.c,panel-widget.c,drawer.c: new panel-widget signal
          "applet_move" and got rid of restore_state signal. this
          makes it possible for the drawers to move themselves
          appropriately. initialization cleaned up and should work
          fine for orientation otehr then bottom
parent c588f9ee
Thu Mar 05 22:22:53 1998 George Lebl <jirka@5z.com>
* main.c,panel-widget.c,drawer.c: new panel-widget signal
"applet_move" and got rid of restore_state signal. this
makes it possible for the drawers to move themselves
appropriately. initialization cleaned up and should work
fine for orientation otehr then bottom
Wed Mar 04 23:28:44 1998 George Lebl <jirka@5z.com>
* main.c, panel-widget.c: made signals work better, drawers
......
Thu Mar 05 22:22:53 1998 George Lebl <jirka@5z.com>
* main.c,panel-widget.c,drawer.c: new panel-widget signal
"applet_move" and got rid of restore_state signal. this
makes it possible for the drawers to move themselves
appropriately. initialization cleaned up and should work
fine for orientation otehr then bottom
Wed Mar 04 23:28:44 1998 George Lebl <jirka@5z.com>
* main.c, panel-widget.c: made signals work better, drawers
......
......@@ -135,16 +135,11 @@ create_drawer_applet(GtkWidget *window, GtkWidget * drawer_panel,
gtk_object_set_user_data(GTK_OBJECT(drawer->button),drawer);
/*FIXME: this don't work, make sure the drawer is shown if
it is supposed to be
if(PANEL_WIDGET(drawer->drawer)->state == PANEL_SHOWN) {
PANEL_WIDGET(drawer->drawer)->state = PANEL_HIDDEN;
gtk_signal_connect_after(GTK_OBJECT(drawer->button),
"size_allocate",
GTK_SIGNAL_FUNC(drawer_click),
drawer);
}
*/
if(PANEL_WIDGET(drawer_panel)->state == PANEL_SHOWN)
gtk_widget_show(drawer_panel);
else
gtk_widget_hide(drawer_panel);
g_free (pixmap_name);
return drawer;
......
......@@ -1305,9 +1305,10 @@ panel_widget_applet_move_to_cursor(PanelWidget *panel)
panel->currently_dragged_applet_pos =
panel_widget_switch_move(panel, pos, moveby);
gtk_signal_emit(GTK_OBJECT(panel),
/*now done in size_allocate*/
/*gtk_signal_emit(GTK_OBJECT(panel),
panel_widget_signals[APPLET_MOVE_SIGNAL],
panel->currently_dragged_applet);
panel->currently_dragged_applet);*/
return TRUE;
}
return FALSE;
......
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