Commit 3de18297 authored by Martin Baulig's avatar Martin Baulig Committed by Martin Baulig

Added rgb-stuff.[ch], tearoffitem.[ch], title-item.[ch],

2001-08-09  Martin Baulig  <baulig@suse.de>

	* Makefile.am (panel_temp_SOURCES): Added
	rgb-stuff.[ch],	tearoffitem.[ch], title-item.[ch],
	title-item-private.h, panel.[ch].

	* panel.c: Ported to GTK+ 2.0.
	[FIXME: There's gnome_uri_list #ifdef FIXME'ed].

	* main.c: Forgot a GnomeDialog -> GtkDialog.
parent 213e57db
2001-08-09 Martin Baulig <baulig@suse.de>
* Makefile.am (panel_temp_SOURCES): Added
rgb-stuff.[ch], tearoffitem.[ch], title-item.[ch],
title-item-private.h, panel.[ch].
* panel.c: Ported to GTK+ 2.0.
[FIXME: There's gnome_uri_list #ifdef FIXME'ed].
* main.c: Forgot a GnomeDialog -> GtkDialog.
2001-08-09 Martin Baulig <baulig@suse.de>
* Makefile.am (panel_temp_SOURCES): Added
......
......@@ -23,7 +23,7 @@ INCLUDES = \
-DGLADEDIR=\""$(datadir)/gnome/panel"\" \
-DGLOBAL_CONFDIR=\""$(sysconfdir)/gnome/panel-config"\" \
-I$(includedir) \
$(PANEL_CFLAGS)
$(PANEL_CFLAGS) -Werror
gwmh_dir = $(top_srcdir)/applets/desk-guide
......@@ -150,6 +150,15 @@ panel_temp_SOURCES=\
sliding-widget.h \
floating-widget.c \
floating-widget.h \
rgb-stuff.h \
rgb-stuff.c \
tearoffitem.c \
tearoffitem.h \
title-item.h \
title-item.c \
title-item-private.h \
panel.c \
panel.h \
$(NULL)
panel_temp_LDADD=\
......@@ -161,8 +170,6 @@ panel_SOURCES=\
things-will-not-compile-below-this-line \
applet.c \
applet.h \
panel.c \
panel.h \
panel_config.c \
panel_config.h \
panel_config_global.h \
......@@ -192,17 +199,10 @@ panel_SOURCES=\
drawer.h \
panel-util.c \
panel-util.h \
tearoffitem.c \
tearoffitem.h \
rgb-stuff.h \
rgb-stuff.c \
global-keys.c \
global-keys.h \
gnome-run.c \
gnome-run.h \
title-item.h \
title-item.c \
title-item-private.h \
scroll-menu.h \
scroll-menu.c \
icon-entry-hack.c \
......
......@@ -451,13 +451,18 @@ main(int argc, char **argv)
duplicate = FALSE;
break; /* success */
case -4: {
GtkWidget* box = gnome_question_dialog
(_("I've detected a panel already running.\n"
"Start another panel as well?\n"
"(The new panel will not be restarted.)"), NULL, NULL);
panel_set_dialog_layer (box);
if (gnome_dialog_run_and_close (GNOME_DIALOG (box)))
GtkWidget* box = gtk_message_dialog_new
(NULL, 0,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
(_("I've detected a panel already running.\n"
"Start another panel as well?\n"
"(The new panel will not be restarted.)")));
if (gtk_dialog_run (GTK_DIALOG (box)) != GTK_RESPONSE_YES) {
gtk_widget_destroy (box);
return 0;
}
gtk_widget_destroy (box);
duplicate = TRUE;
break;
}
......
......@@ -14,6 +14,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <libgnome/gnome-i18n.h>
#include <libgnome/gnome-util.h>
#include <libgnomeui.h>
#include "panel-include.h"
......@@ -795,10 +797,10 @@ panel_event(GtkWidget *widget, GdkEvent *event, PanelData *pd)
basep_widget_autohide (basep);
}
gtk_menu_popup (GTK_MENU (menu), NULL, NULL,
panel_menu_position,
widget, bevent->button,
bevent->time);
gtk_menu_shell_popup (GTK_MENU_SHELL (menu), NULL, NULL,
panel_menu_position,
widget, bevent->button,
bevent->time);
return TRUE;
}
break;
......@@ -1037,6 +1039,7 @@ static void
drop_urilist (PanelWidget *panel, int pos, char *urilist,
gboolean background_drops)
{
#ifdef FIXME
GList *li, *files;
struct stat s;
......@@ -1092,6 +1095,7 @@ drop_urilist (PanelWidget *panel, int pos, char *urilist,
}
gnome_uri_list_free_strings (files);
#endif
}
static void
......
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