Date: 12 Oct 2002 15:10:42 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Franz Klammer <klammer@webonaut.com> Cc: FreeBSD GNOME Users <gnome@freebsd.org> Subject: Re: metacity-setup default to 2.4.x Message-ID: <1034449843.57964.3.camel@shumai.marcuscom.com> In-Reply-To: <1034429398.33174.9.camel@ncc-1701> References: <1034429398.33174.9.camel@ncc-1701>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-vMm7JX8VdJpZguQ/OFp7 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2002-10-12 at 09:29, Franz Klammer wrote: > i've changed my metacity-setup with 2.4.x as the default. > attached my patches. maybe you can use it. Cool. Thanks. Joe >=20 > franz. >=20 > ---- >=20 > --- src/interface.c.orig Sat Oct 12 14:53:45 2002 > +++ src/interface.c Sat Oct 12 15:04:53 2002 > @@ -111,8 +111,8 @@ > gtk_widget_show (vbox3); > gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox3, TRUE, TRUE, 0); > =20 > - version_button1 =3D gtk_radio_button_new_with_label(NULL, "I am using m= etacity 2.3.x"); > - version_button2 =3D gtk_radio_button_new_with_label_from_widget(GTK_RAD= IO_BUTTON (version_button1), "I am using metacity 2.4.x"); > + version_button2 =3D gtk_radio_button_new_with_label(NULL, "I am using m= etacity 2.4.x"); > + version_button1 =3D gtk_radio_button_new_with_label_from_widget(GTK_RAD= IO_BUTTON (version_button2), "I am using metacity 2.3.x"); > gtk_box_pack_start (GTK_BOX (vbox3), version_button1, TRUE, TRUE, 0); > gtk_box_pack_start (GTK_BOX (vbox3), version_button2, TRUE, TRUE, 0); > gtk_widget_show (version_button1); > ---- >=20 > --- src/callbacks.c.original Sat Oct 12 14:42:02 2002 > +++ src/callbacks.c Sat Oct 12 14:50:10 2002 > @@ -35,7 +35,7 @@ > GtkWidget *treeview1_cheat; > GtkWidget *install_dialog_cheat; > GtkWidget *refresh_button_cheat; > -gchar *metacity_version =3D "2.3"; > +gchar *metacity_version =3D "2.4"; > =20 > enum > { > @@ -228,14 +228,25 @@ > =20 > while ((filename =3D > g_dir_read_name (themeDirectory)) !=3D NULL) > - if (g_file_test > + if ((g_file_test > (g_build_filename > (possibleThemeDirs[i], filename, NULL), > G_FILE_TEST_IS_DIR) && > (g_file_test > (g_build_filename > (possibleThemeDirs[i], filename, "metacity-theme-1.xml", NULL), > - G_FILE_TEST_IS_REGULAR))) > + G_FILE_TEST_IS_REGULAR))) || > + ((g_file_test > + (g_build_filename > + (possibleThemeDirs[i], filename, NULL), > + G_FILE_TEST_IS_DIR) && > + (g_file_test > + (g_build_filename > + (possibleThemeDirs[i], filename, "metacity-1", NULL), = G_FILE_TEST_IS_DIR) && > + (g_file_test > + (g_build_filename > + (possibleThemeDirs[i], filename, "metacity-1", "metacity-= theme-1.xml", NULL), G_FILE_TEST_IS_REGULAR)))))) > + > { > g_ptr_array_add (themeNameHolder, > g_strdup (filename)); > @@ -690,4 +701,4 @@ > else=20 > metacity_version =3D "2.4"; > on_treeview1_realize (treeview1_cheat, user_data); > -} > +} --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-vMm7JX8VdJpZguQ/OFp7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD4DBQA9qHOyb2iPiv4Uz4cRApmCAJjGcf+t3CvbtkGfoX/AhmmvX1flAJ49APGe IpJDWxR2nJBF6kG8bsnYhQ== =eNXw -----END PGP SIGNATURE----- --=-vMm7JX8VdJpZguQ/OFp7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1034449843.57964.3.camel>