Re: [GnomeMeeting-devel-list] Dbus python client
- From: "Philippe Normand" <Philippe Normand enst-bretagne fr>
- To: gnomemeeting-devel-list gnome org
- Subject: Re: [GnomeMeeting-devel-list] Dbus python client
- Date: Mon, 04 Apr 2005 09:16:50 +0100
Le 2/4/2005, "Julien PUYDT" <jpuydt free fr> a écrit:
>Could you please send the patch to the list?
The patch is courtesy of Jerome Kerdreux, i post here with his
permission. It does few things:
- remove some widgets from the main_window
- parse a custom Gtk theme
I will port the patch to GM CVS HEAD now, so that we'll be able to use
the DBus API.
Philippe
--- gnomeeting-1.2/gnomemeeting-1.2.0/src/main_window.cpp 2005-04-04 10:03:21.000000000 +0200
+++ gnomemeeting-1.2.0/src/main_window.cpp 2004-11-20 14:54:23.000000000 +0100
@@ -88,11 +88,6 @@
#define GM_MAIN_WINDOW(x) (GmWindow *) (x)
-// JKX: flag enable / disable tapa tweaks
-int tapa_flag = 1;
-
-
-
/* Declarations */
struct _GmWindow
{
@@ -878,19 +873,9 @@
/* Add the toolbar to the UI */
#ifndef DISABLE_GNOME
-
- // =========================================================================
- // JKX:
- // On n'affiche pas la toolbar non plus ..
- // =========================================================================
- if (tapa_flag ==0)
- { gnome_app_add_toolbar (GNOME_APP (main_window), GTK_TOOLBAR (toolbar),
- "left_toolbar", BONOBO_DOCK_ITEM_BEH_EXCLUSIVE,
- BONOBO_DOCK_LEFT, 2, 0, 0);
- }
- // =========================================================================
-
-
+ gnome_app_add_toolbar (GNOME_APP (main_window), GTK_TOOLBAR (toolbar),
+ "left_toolbar", BONOBO_DOCK_ITEM_BEH_EXCLUSIVE,
+ BONOBO_DOCK_LEFT, 2, 0, 0);
#else
gtk_box_pack_start (GTK_BOX (mw->window_hbox), toolbar,
FALSE, FALSE, 0);
@@ -1218,15 +1203,8 @@
gm_main_window_speed_dials_menu_update (main_window, glist);
g_slist_foreach (glist, (GFunc) gm_contact_delete, NULL);
g_slist_free (glist);
-
- // =========================================================================
- // JKX:
- // nous n'affichons pas le menu
- // =========================================================================
- if (tapa_flag == 0)
- { gtk_widget_show_all (GTK_WIDGET (mw->main_menu)); }
- // =========================================================================
+ gtk_widget_show_all (GTK_WIDGET (mw->main_menu));
}
@@ -3812,22 +3790,13 @@
main_notebook_section =
gm_conf_get_int (USER_INTERFACE_KEY "main_window/control_panel_section");
+ if (main_notebook_section != GM_MAIN_NOTEBOOK_HIDDEN) {
- // =========================================================================
- // Jkx:
- // Le notebook doit toujours être caché
- // =========================================================================
- if (tapa_flag == 0) {
- if (main_notebook_section != GM_MAIN_NOTEBOOK_HIDDEN) {
-
- gtk_widget_show_all (GTK_WIDGET (mw->main_notebook));
- gtk_notebook_set_current_page (GTK_NOTEBOOK ((mw->main_notebook)),
- main_notebook_section);
- }
+ gtk_widget_show_all (GTK_WIDGET (mw->main_notebook));
+ gtk_notebook_set_current_page (GTK_NOTEBOOK ((mw->main_notebook)),
+ main_notebook_section);
}
- // =========================================================================
-
-
+
/* The frame that contains video and remote name display */
frame = gtk_frame_new (NULL);
@@ -3931,16 +3900,8 @@
gtk_widget_set_size_request (GTK_WIDGET (mw->main_notebook),
GM_QCIF_WIDTH + GM_FRAME_SIZE, -1);
-
- // =========================================================
- // JKX
- // on set la size par défaut
- //
- if (tapa_flag == 0 ) {
- gtk_widget_set_size_request (GTK_WIDGET (window), -1, -1); }
- else {
- gtk_widget_set_size_request (GTK_WIDGET (window), 800, 600); }
- // =========================================================
+ gtk_widget_set_size_request (GTK_WIDGET (window), -1, -1);
+
/* Add the window icon and title */
gtk_window_set_title (GTK_WINDOW (window), _("GnomeMeeting"));
@@ -4181,10 +4142,6 @@
gchar *key_name = NULL;
gchar *msg = NULL;
- // Jkx
- gchar *gtkrc = NULL;
-
-
int debug_level = 0;
@@ -4203,7 +4160,6 @@
gtk_init (NULL, NULL);
#endif
-
xmlInitParser ();
gm_conf_init (argc, argv);
@@ -4230,19 +4186,11 @@
{"debug", 'd', POPT_ARG_INT, &debug_level,
1, N_("Prints debug messages in the console (level between 1 and 6)"),
NULL},
-
- {"tapa", 't', POPT_ARG_INT, &tapa_flag,
- 1, N_("Enable / Disable Tapa tweaks"),
- NULL},
-
{"call", 'c', POPT_ARG_STRING, &url,
1, N_("Makes GnomeMeeting call the given URL"), NULL},
{NULL, '\0', 0, NULL, 0, NULL, NULL}
};
-
-
-
/* GnomeMeeting Initialisation */
gnome_program_init ("gnomemeeting", VERSION,
LIBGNOMEUI_MODULE, argc, argv,
@@ -4252,22 +4200,7 @@
GNOME_PARAM_APP_DATADIR, GNOMEMEETING_DATADIR,
(void *) NULL);
#endif
-
-
- //==================================================================
- // JKX: ajout du parsing de theme Gtk pour Tapa
- //
- //==================================================================
- if (tapa_flag == 1) {
- gtkrc = getenv("HOME");
-
- gtkrc = strcat(gtkrc,"/tapa/src/main/GuiPA/theme/gtk/gtkrc");
- printf("** Parsing of %s \n", gtkrc);
- gtk_rc_parse(gtkrc);
- g_free(gtkrc);
- }
- //==================================================================
-
+
gdk_threads_enter ();
/* The factory */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]