[geany/geany] 1a8de8: Optimize document -> notebook page lookup

Colomban Wendling git-noreply at xxxxx
Sat Feb 21 17:53:59 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 21 Feb 2015 17:53:59 UTC
Commit:      1a8de8fb09959ef22281328f25a6b03ede1fbafe
             https://github.com/geany/geany/commit/1a8de8fb09959ef22281328f25a6b03ede1fbafe

Log Message:
-----------
Optimize document -> notebook page lookup


Modified Paths:
--------------
    src/document.c

Modified: src/document.c
3 lines changed, 1 insertions(+), 2 deletions(-)
===================================================================
@@ -3323,8 +3323,7 @@ static GtkWidget* document_show_message(GeanyDocument *doc, GtkMessageType msgty
 	gchar *text, *markup;
 	GtkWidget *hbox, *vbox, *icon, *label, *extra_label, *content_area;
 	GtkWidget *info_widget, *parent;
-	parent = gtk_notebook_get_nth_page(GTK_NOTEBOOK(main_widgets.notebook),
-                                       document_get_notebook_page(doc));
+	parent = document_get_notebook_child(doc);
 
 	va_start(args, format);
 	text = g_strdup_vprintf(format, args);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list