anjuta r3460 - in trunk: . libanjuta plugins/glade
- From: naba svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3460 - in trunk: . libanjuta plugins/glade
- Date: Sat, 12 Jan 2008 23:48:07 +0000 (GMT)
Author: naba
Date: Sat Jan 12 23:48:07 2008
New Revision: 3460
URL: http://svn.gnome.org/viewvc/anjuta?rev=3460&view=rev
Log:
* libanjuta/anjuta-launcher.c: (is_password_prompt): Use const.
* plugins/glade/plugin.c: (ifile_open): Select the first window
in the glade project when it is first opened. Avoids empty glade
document the first time.
Modified:
trunk/ChangeLog
trunk/libanjuta/anjuta-launcher.c
trunk/plugins/glade/plugin.c
Modified: trunk/libanjuta/anjuta-launcher.c
==============================================================================
--- trunk/libanjuta/anjuta-launcher.c (original)
+++ trunk/libanjuta/anjuta-launcher.c Sat Jan 12 23:48:07 2008
@@ -641,8 +641,8 @@
static gboolean
is_password_prompt (const gchar* line)
{
- gchar* password = "assword";
- gchar* passphrase = "assphrase";
+ const gchar* password = "assword";
+ const gchar* passphrase = "assphrase";
if (strlen (line) < strlen (password)
|| strlen (line) < strlen (passphrase))
Modified: trunk/plugins/glade/plugin.c
==============================================================================
--- trunk/plugins/glade/plugin.c (original)
+++ trunk/plugins/glade/plugin.c Sat Jan 12 23:48:07 2008
@@ -630,8 +630,8 @@
GtkTreeIter iter;
gchar *filename;
IAnjutaDocumentManager* docman;
- GList* docwids;
- GList* node;
+ GList* docwids, *node;
+ const GList *glade_obj_node;
g_return_if_fail (uri != NULL);
@@ -696,6 +696,17 @@
PROJECT_COL, project, -1);
#endif
glade_plugin_add_project (ANJUTA_PLUGIN_GLADE (ifile), project);
+
+ /* Select the first window in the project */
+ for (glade_obj_node = glade_project_get_objects (project);
+ glade_obj_node != NULL;
+ glade_obj_node = g_list_next (glade_obj_node))
+ {
+ GObject *glade_obj = G_OBJECT (glade_obj_node->data);
+ if (GTK_IS_WINDOW (glade_obj))
+ glade_widget_show (glade_widget_get_from_gobject (glade_obj));
+ break;
+ }
anjuta_shell_present_widget (ANJUTA_PLUGIN (ifile)->shell, priv->view_box, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]