Changeset 245
- Timestamp:
- 06/29/06 14:22:27 (2 years ago)
- Files:
-
- trunk/configure.ac (modified) (1 diff)
- trunk/src/MainPter.cxx (modified) (2 diffs)
- trunk/src/MainPter.h (modified) (1 diff)
- trunk/src/gtk/MainView.cxx (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/configure.ac
r242 r245 1 1 dnl Process this file with autoconf to produce a configure script. 2 AC_INIT([ePDFView], [0.1. 5], [jordi@emma-soft.com])2 AC_INIT([ePDFView], [0.1.6], [jordi@emma-soft.com]) 3 3 AC_PREREQ([2.13]) 4 4 AC_CONFIG_HEADER([config.h]) trunk/src/MainPter.cxx
r227 r245 285 285 m_PagePter = new PagePter (m_Document); 286 286 m_PagePter->setView (*view); 287 287 288 288 delete m_View; 289 289 m_View = view; … … 291 291 // state. 292 292 setInitialState (); 293 } 294 295 /// 296 /// @brief An URL link in the about box has been activated. 297 /// 298 /// @param link The URL of the link activated. 299 /// 300 void 301 MainPter::aboutBoxLinkActivated (const gchar *link) 302 { 303 gchar *browserCommandLine = 304 Config::getConfig ().getExternalBrowserCommandLine (); 305 gchar *commandLine = g_strdup_printf (browserCommandLine, link); 306 g_free (browserCommandLine); 307 308 GError *error = NULL; 309 if ( !g_spawn_command_line_async (commandLine, &error) ) 310 { 311 g_error_free (error); 312 } 313 g_free (commandLine); 293 314 } 294 315 trunk/src/MainPter.h
r213 r245 46 46 void setView (IMainView *view); 47 47 48 void aboutBoxLinkActivated (const gchar *link); 48 49 void findActivated (void); 49 50 void goToFirstPageActivated (void); trunk/src/gtk/MainView.cxx
r227 r245 50 50 // Forward declarations. 51 51 static void main_window_about_box_cb (GtkWidget *, gpointer); 52 static void main_window_about_box_url_hook (GtkAboutDialog *, const gchar *, 53 gpointer); 52 54 static void main_window_find_cb (GtkWidget *, gpointer); 53 55 static gboolean main_window_moved_or_resized_cb (GtkWidget *, … … 1013 1015 gchar *licenseTranslated = g_strconcat (_(license[0]), "\n", 1014 1016 _(license[1]), "\n", 1015 _(license[2]), "\n", NULL); 1017 _(license[2]), "\n", NULL); 1018 gtk_about_dialog_set_url_hook (main_window_about_box_url_hook, NULL, NULL); 1016 1019 gtk_show_about_dialog (NULL, 1017 1020 "name", _("ePDFView"), … … 1028 1031 } 1029 1032 1033 1034 void 1035 main_window_about_box_url_hook (GtkAboutDialog *about, const gchar *link, 1036 gpointer data) 1037 { 1038 g_assert ( NULL != data && "The data parameter is NULL."); 1039 1040 MainPter *pter = (MainPter *)data; 1041 pter->aboutBoxLinkActivated (link); 1042 } 1043 1030 1044 /// 1031 1045 /// @brief The user tried to find a word in the document.
